package com.itheima;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

//配置指定顺序执行


@WebFilter(value = "/erro.jsp",dispatcherTypes = {DispatcherType.ERROR})
public class FilterDemo3 implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("filter3执行了");

        filterChain.doFilter(servletRequest,servletResponse);
    }
}
